package com.thd.kotlinapp.activity

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.lifecycleScope
import com.thd.kotlinapp.R
import com.thd.kotlinapp.databinding.ActivityMainBinding
import kotlinx.coroutines.launch

class MainActivity : AppCompatActivity() {
    private lateinit var mainBinder : ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mainBinder = DataBindingUtil.setContentView(this,R.layout.activity_main)

        //测试界面
        mainBinder.jopTest.setOnClickListener {
            val intent = Intent(this,TestActivity::class.java)
            startActivity(intent)

        }
        //定时界面
        mainBinder.schedulerTask.setOnClickListener {
            val intent = Intent(this,SchedulerActivity::class.java)
            startActivity(intent)

        }
    }



}